//
//  CameraAlbum.h
//  IOS_FrameWork
//
//  Created by tan_xin on 14-7-1.
//  Copyright (c) 2014年 MyCompany. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ELCImagePickerController.h"

@protocol CameraAlbumDelegate <NSObject>
@optional
-(void)getSavedImage:(UIImage*)image;
-(void)getSavedImages:(NSMutableArray*)images;

- (void)didFinishedPickImageWithURL:(NSString *)url;
@end

@interface CameraAlbum : NSObject<UIImagePickerControllerDelegate,ELCImagePickerControllerDelegate>

@property(nonatomic,retain)UIViewController *viewController;
@property(nonatomic,retain)UIImagePickerController *picker;
@property(nonatomic,retain)UIImage *image;
@property(nonatomic,assign)id<CameraAlbumDelegate> delegate;
@property (nonatomic)NSInteger maximumImagesCount;//最多选择图片


+(CameraAlbum*)instance;

-(void)openCameraInTargetViewController:(id)viewCtrl;
-(void)openPhotoLibraryInTargetViewController:(id)viewCtrl;
-(void)openMutiblePhotoLibraryInTargetViewController:(id)viewCtrl;

@end
